#include<iostream>
#include<unistd.h>
#include<stdlib.h>
using namespace std;

int main(){
	if(daemon(0,0)==-1){
		cout<<"error"<<endl;
		exit(-1);
	} //switch process to background

	while(1){
		sleep(1);
	}
}

